﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admini/Master.Master" AutoEventWireup="true" CodeBehind="UserList.aspx.cs" Inherits="ART.Admini.Users.UserList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphContent" runat="server">
<div id="h_main">
 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <contenttemplate>
        <table border="0" cellspacing="0" style="width: 100%;">
            <tr class="daohang_title">
                <td style="text-align: left; padding-left: 3px;">
                    用户搜索↓
                </td>
                <td style="text-align: right; padding-right: 3px;">
                </td>
            </tr>
            <tr>
                <td colspan="2" style="padding-top: 5px;">
                    <table border="0" cellpadding="0" cellspacing="1" style="margin-bottom: 15px;">
                                <tr>
                                <td class="td_title">
                                搜索关键字：</td>
                            <td class="td_content">
                                <asp:TextBox runat="server" ID="txtSearchName" Style="width: 318px"></asp:TextBox>
                                <span class="bak"></span></td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: left; padding-top: 5px;">
                                <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btnlistOver" OnClick="btnSearch_Click"
                                    OnClientClick="javascript:funbtnClick('#ctl00_cphContent_btnSearch');"></asp:Button>
                                </td>
                        </tr>
                         </table>
                </td>
            </tr>
            <tr class="daohang_title">
                <td style="text-align: left; padding-left: 3px;">
                    用户列表↓ 
                </td>
                <td style="text-align: right; padding-right: 3px;">
                    <input id="btnAdd" type="button" value="新 增" class="btnlistOver" onclick="javascript:openDlg('Add','新增','UserDetail.aspx',570,270,'');" />
                    <asp:Button ID="lbtnDeletes" runat="server" Text="批量删除" CssClass="btnlistOver" OnClientClick="return confirm('确定删除选中的数据吗？')"
                        OnClick="lbtnDeletes_Click" /></td>
            </tr>
            <tr>
                <td colspan="2">
                 <ctl:Repeater ID="rpt_List" runat="server" OnItemCommand="rpt_List_ItemCommand" >
                  <HeaderTemplate>
                    <table cellpadding="0" cellspacing="0" border="0" width="100%" id="tableData">
                        <tr>
                            <th>
                                <input id="cheList" type="checkbox" onclick="checkAll(this.form)" /></th>
                            <th>
                                ID</th>
                            <th>
                                用户名</th>
                            <th>
                                所属分组</th>
                            <th>
                                状态</th>
                            <th>
                                上次登录</th>
                            <th >
                                操作</th>
                        </tr>
                       </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_data" onmouseout="mout(this);" onmouseover="mover(this);">
                                    <td>
                                        <input id="cheId" runat="server" value='<%#Eval("Id")%>' type="checkbox" /></td>
                                    <td>
                                         <%# Eval("id")%>
                                    </td>
                                    <td>
                                       <%# Eval("Account")%>
                                    </td>
                                    <td>
                                        <%# GetGroupName(Eval("UserGroupId"))%>
                                    </td>
                                    <td>
                                       <%# Eval("Enabled").ToString() == "1" ? "<span style=\"color:red\">锁定</span>" : "正常"%> 
                                    </td>
                                    
                                    <td>
                                        <%# DataBinder.Eval(Container.DataItem, "LastLoginTime", "{0:yyyy-MM-dd HH:mm}")%>
                                    </td>
                                    
                                    <td>
                                        <a href="javascript:;" onclick="javascript:openDlg('Add','编辑','UserDetail.aspx?Id=<%# Eval("Id")%>',570,'auto','');" />
                                            编辑</a>
                                            &nbsp;<a href="javascript:;" onclick="javascript:openDlg('UserEdit','基础信息','UserEdit.aspx?Id=<%# Eval("Id")%>',700,600,'');" />
                                            基础信息</a>
                                         &nbsp;<a href="javascript:;" onclick="javascript:openDlg('UserWorkList','工作经验','UserWorkList.aspx?Id=<%# Eval("Id")%>',570,500,'');" />
                                            经验</a>
                                            &nbsp;<a href="javascript:;" onclick="javascript:openDlg('UserGraduateList','教育经历','UserGraduateList.aspx?Id=<%# Eval("Id")%>',570,500,'');" />
                                            教育</a>
                                            &nbsp;<a href="javascript:;" onclick="javascript:openDlg('UserLangList','语言能力','UserLangList.aspx?Id=<%# Eval("Id")%>',570,500,'');" />
                                            语言能力</a>&nbsp;
                                        <asp:LinkButton ID="lbtnDelete" CommandName="lbtnDelete" CommandArgument='<%#Eval("Id")%>'
                                            title="删除" OnClientClick="return confirm('确定删除数据吗？')" runat="server">删除</asp:LinkButton>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        <FooterTemplate>
                </table>
            </FooterTemplate>
         </ctl:Repeater>
                </td>
            </tr>
        </table>
         </contenttemplate>
        </asp:UpdatePanel>
       </div>
</asp:Content>
